import request from '@/utils/axios/fetch'
import { Resutl_Promise } from '@/types'
export const api_home = {
  async success_fetch(): Promise<Resutl_Promise> {
    const res = (await request.post('/foxhis/users')) as Resutl_Promise
    return res
  },
  async error_fetch(): Promise<Resutl_Promise> {
    const res = (await request.post('/foxhis/error')) as Resutl_Promise
    return res
  },
  async all_fetch1(): Promise<Resutl_Promise> {
    const res = (await request.post('/foxhis/allSettled1')) as Resutl_Promise
    return res
  },
  async all_fetch2(): Promise<Resutl_Promise> {
    const res = (await request.post('/foxhis/allSettled2')) as Resutl_Promise
    return res
  }
}
